package com.quanyue.haircut.user.mapper;

import com.quanyue.haircut.domain.entity.User;
import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends AutoMapper <User, Integer> {

    User findByName(@Param("nickName") String name);

    User findByOpenId(@Param("openId") String openId);
}
